<?php
namespace app\index\controller;

use think\Controller;
use Qiniu\Auth;
use think\cache\driver\Redis;

class Index extends Controller
{	
    public function index()
    {
phpinfo();die;      
 $conn = db2_connect('test2','db2inst1','123456');

if(!$conn){
  var_dump(db2_conn_errormsg());
}
var_dump($conn);die;

       	return $this->fetch();
    }

    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }
    public function excuteCmd(){
        echo 123;
    }
}
